#ifndef DISPLAYSETTING_H
#define DISPLAYSETTING_H

#include <QWidget>
#include <QPixmap>
#include <QDebug>
#include <QLabel>
#include <QCheckBox>
#include <QPainter>
#include <QPaintEvent>
#include <QList>
#include <QMessageBox>
#include "landscapeimage.h"

namespace Ui {
class DisplaySetting;
}

class DisplaySetting : public QWidget
{
    Q_OBJECT

public:
    explicit DisplaySetting(QWidget *parent = nullptr);
    ~DisplaySetting();

signals:
    void sendImage(QList<LandscapeImage*> images,int type);

private slots:
    void on_checkBox_1_clicked(bool checked);

    void on_checkBox_2_clicked(bool checked);

    void on_pushButton_return_clicked();

    void on_radioButton_2_clicked();

    void on_radioButton_four_seasons_clicked();

    void on_pushButton_confirm_clicked();

private:
    Ui::DisplaySetting *ui;
    void initImage();
    void gatherButton();    //汇总ui各种按钮方便操作
    void gatherSelectedImages();
    QList<LandscapeImage*> landscapeImages;
    QPixmap label_1;
    QLabel *labels[20];
    QCheckBox *checkboxes[20];
    QString Spring[5];
    QString Summer[5];
    QString Autumn[5];
    QString Winter[5];
    QString Scenery[20];
};

#endif // DISPLAYSETTING_H
